package com.netistate.pojo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name="t_devhistory")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Devhistory {
	
	private int id;
	private String hardwareSource;
	private String productConfig;
	private String createtime;
	private String workNote;
	
	private Device device;
	
	@ManyToOne
	@JoinColumn(name="deviceid")
	public Device getDevice() {
		return device;
	}
	public void setDevice(Device device) {
		this.device = device;
	}
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getHardwareSource() {
		return hardwareSource;
	}
	public void setHardwareSource(String hardwareSource) {
		this.hardwareSource = hardwareSource;
	}
	public String getProductConfig() {
		return productConfig;
	}
	public void setProductConfig(String productConfig) {
		this.productConfig = productConfig;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	public String getWorkNote() {
		return workNote;
	}
	public void setWorkNote(String workNote) {
		this.workNote = workNote;
	}
	
	
	

}
